/*
 * @Author: jack
 * @Date: 2021-11-07 19:06:01
 * @Last Modified by: jack
 * @Last Modified time: 2021-11-07 19:06:01
 */

// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
// import { BASE_DATA_URL } from '@/api/sys.base'
export const TYPE_NAME = "confType";


// 高德地图秘钥
export const MAP_KEYS = '6ac48bd7be908482c01b1f8bb8cb6cdf'

// 高德地图插件列表
export const MAP_PLUGINS = [
  'AMap.Scale',
  'AMap.Geocoder',
  'AMap.ToolBar',
  'AMap.PlaceSearch',
]

// 上传图片压缩比例
export const COMPRESS_RATE = 0.5

// 收款类型
export const DEALTYPE = {
  0: "首次收款",
  4: "收尾款",
  5: "新增成交",
  6: "退款",
  7: "金额修正"
};

// 成交列表 收款类型
export const DEALLISTTYPELIST = [
  { id: 0, name: "首次收款" },
  { id: 4, name: "收尾款" },
  { id: 5, name: "新增成交" },
  { id: 6, name: "退款" },
  { id: 7, name: "金额修正" }
];

// 收款类型-列表
export const DEALTYPELIST = [
  { id: 4, name: "收尾款" },
  { id: 1, name: "收全款" },
  { id: 3, name: "收定金" }
];

// 收款类型-成交记录列表
export const DEALRECORDTYPELIST = [
  { id: 2, name: "部分款" },
  { id: 1, name: "全款" },
  { id: 3, name: "定金" }
];

// 成交记录-报名费处理-列表
export const DEALENROLLFEELIST = [
  { id: 1, name: "门诊抵扣" },
  { id: 2, name: "门诊未抵扣，门诊退" },
  { id: 3, name: "门诊未抵扣，平台退" }
];

// 客户-报名费处理-列表
export const ENROLLFEELIST = [
  { id: 1, name: "已交" },
  { id: 0, name: "未交" }
];

// 客户状态
export const CUSTOMERSTATUS = [
  { id: 1, name: "待联系" },
  { id: 2, name: "待预约" },
  { id: 3, name: "已预约" },
  { id: 8, name: "已成交" },
  { id: 7, name: "未成交" }
];

// 预约状态
export const BOOKSTATUSLIST = [
  { id: 5, name: "待到店" },
  { id: 6, name: "已取消" },
  { id: 8, name: "已成交" },
  { id: 4, name: "已改约" },
  { id: 7, name: "未成交" }
];

// 图表颜色
export const ECHARTCOLOR = [
  "#167FFF",
  "#91cc75",
  "#40D69F",
  "#FFA04C",
  "#73c0de",
  "#3ba272",
  "#fc8452",
  "#9a60b4",
  "#ea7ccc"
];

// 性别
export const GENDERLIST = [
  { id: "男", name: "男" },
  { id: "女", name: "女" },
  { id: "未知", name: "未知" }
];

//医院成交情况-筛选项
export const DEALPROJECTLIST = [
  { id: 1, name: "成交金额" },
  { id: 2, name: "收款金额" },
  { id: 3, name: "客单价" },
  { id: 4, name: "种植客单价" },
  { id: 5, name: "矫正客单价" }
];

// 发票需求
export const INVOICENEED = [
  { id: 0, name: '否' },
  { id: 1, name: '是' }
]

// 发票进度
export const INVOICEPROGRESS = [
  { id: 0, name: '待申请' },
  { id: 1, name: '处理中' },
  { id: 2, name: '已出具' }

]

// 结算状态
export const SETTLESTATUS = [
  { id: 0, name: '未结算' },
  { id: 1, name: '已结算' },
  { id: 2, name: '结算中' }
]

// 结算状态
export const BILLSETTLESTATUS = [
  { id: 1, name: '已结算' },
  { id: 2, name: '结算中' }
]

// 缴费类型
export const PAYMENTTYPE = [
  { id: 4, name: '尾款' },
  { id: 5, name: '新增成交' }
]

// 错误类型
export const DIFFTYPELIST = [
  { id: 1, name: '成交差额' },
  { id: 2, name: '收款差额' },
  { id: 3, name: '顾问成交多' },
  { id: 4, name: '顾问收款多' },
  { id: 5, name: '财务成交多' },
  { id: 6, name: '财务收款多' },
  { id: 7, name: '顾问未录入' },
  { id: 8, name: '财务未录入' },
]

// 潜在成交
export const POTENTIALDEALLIST = [
  { id: 0, name: '无' },
  { id: 1, name: '有' }
]

// 预约-医院反馈-状态
export const HOSPITALFEEDBACKSTATUS = [
  { id: 0, name: '待反馈' },
  { id: 1, name: '已反馈' },
  { id: 2, name: '已取消' },
]

// 预约-医院反馈-更新反馈-成交情况
export const FEEDBACKDEALSTATUS = {
  7: '未成交',
  8: '已成交'
}

// 预约-医院反馈-更新反馈-跟进分工
export const FEEDBACKFOLLOWUPPARTY = {
  1: '门诊跟进',
  2: '平台跟进'
}




// 查案例-性别
export const GENDER_OPTIONS = [
  // { text: '性别', value: '' },
  { text: '男', value: 1 },
  { text: '女', value: 2 },
];

// 查案例-年龄
export const AGE_OPTIONS = [
  // { text: '年龄', value: '' },
  { text: '12岁以下', value: 0 },
  { text: '12-18岁', value: 1 },
  { text: '19-30岁', value: 2 },
  { text: '31-55岁', value: 3 },
  { text: '58-70岁', value: 4 },
  { text: '70岁以上', value: 5 },
];

// 查案例-菜单
export const CASE_MENUS = [
  // { text: '全部案例', sub: '查看医生案例', value: 1 },
  { text: '矫正案例', sub: '金属/隐形/舌侧', value: 1 },
  { text: '种植案例', sub: '多颗/半口/全口', value: 2 },
  { text: '其它案例', sub: '根管/牙周/智齿', value: 3 },
]


// 矫正案例-使用材料
export const MATERIAL_OPTIONS = [
  { text: '传统金属矫治器', value: 1 },
  { text: '金属自锁矫治器', value: 2 },
  { text: '陶瓷自锁矫治器', value: 3 },
  { text: '无托槽隐形', value: 4 },
  { text: '舌侧矫治器', value: 5 },
  { text: '功能矫治器', value: 6 },
]

// 矫正案例-治疗方案
export const TREATMENT_OPTIONS = [
  // { text: '治疗方案', value: '' },
  { text: '不拔牙', value: 0 },
  { text: '拔牙', value: 1 },
  { text: '拔智齿', value: 2 },
  { text: '扩弓', value: 3 },
  { text: '推磨牙后移', value: 4 },
  { text: '邻面祛釉（片切）', value: 5 },
  { text: '支抗钉', value: 6 },
  { text: '智齿前移代替缺失牙', value: 7 },
  { text: '间隙闭合', value: 8 },
  { text: '埋伏牙牵引', value: 9 },
];

// 矫正案例-牙齿情况
export const TEETH_CONDITION = [
  // { text: '牙齿情况', value: '' },
  { text: '龅牙/牙性上颌前突', value: 0 },
  { text: '龅牙/骨性双颌前突', value: 1 },
  { text: '露牙龈/高笑线', value: 2 },
  { text: '地包天/牙性双颌前突', value: 3 },
  { text: '开唇漏齿', value: 4 },
  { text: '地包天/骨性双颌前突', value: 5 },
  { text: '中线不齐/偏颌', value: 6 },
  { text: '牙齿拥挤不齐', value: 7 },
  { text: '深覆合', value: 8 },
  { text: '大小脸/面型不对称', value: 9 },
  { text: '牙齿间隙', value: 10 },
  { text: '二次矫正', value: 11 },
  { text: '牙齿扭转/旋转', value: 12 },
];

// 种植案例-使用材料
export const GROW_MATERIAL_OPTIONS = [
  { text: '瑞士iti', value: 1 },
  { text: '瑞典诺贝尔', value: 2 },
  { text: '德国icx', value: 3 },
  { text: '美国皓圣', value: 4 },
  { text: '韩国奥齿泰', value: 5 },
  { text: '韩国登腾', value: 6 },
  { text: '其他', value: 7 }
]

// 种植案例-治疗方案
export const GROW_TREATMENT_OPTIONS = [
  { text: '常规种植', value: '' },
  { text: '即刻种植', value: 0 },
  { text: '微创种植', value: 1 },
  { text: 'allon4', value: 2 },
  { text: 'allon6', value: 3 },
  { text: '半固定半口种植', value: 4 },
  { text: '半固定全口种植', value: 5 },
  { text: '固定半口种植', value: 6 },
  { text: '固定全口种植', value: 7 },
  { text: '种植导板', value: 8 },
  { text: '植骨', value: 9 },
  { text: '上额窦外提', value: 10 },
  { text: '上额窦内提', value: 11 },
  { text: '局部矫正', value: 12 },
];

// 种植案例-牙齿情况
export const GROW_TEETH_CONDITION = [
  { text: '牙齿松动', value: '' },
  { text: '牙齿残根', value: 0 },
  { text: '单颗缺失', value: 1 },
  { text: '多颗缺失', value: 2 },
  { text: '半口缺失', value: 3 },
  { text: '全口缺失', value: 4 },
  { text: '前牙缺失', value: 5 },
  { text: '后牙缺失', value: 6 },
  { text: '外伤牙', value: 7 },
  { text: '骨量不足', value: 8 },
];

// 其他案例-牙齿情况
export const OTHER_TEETH_CONDITION = [
  { text: '蛀牙/龋齿', value: 1 },
  { text: '智齿', value: 2 },
  { text: '牙周炎', value: 3 },
  { text: '牙齿发黄', value: 4 },
];


// 其他案例-使用材料
export const OTHER_MATERIAL_OPTIONS = [
  { text: '瑞士iti', value: 1 },
  { text: '瑞典诺贝尔', value: 2 },
  { text: '德国icx', value: 3 },
  { text: '美国皓圣', value: 4 },
  { text: '韩国奥齿泰', value: 5 },
  { text: '韩国登腾', value: 6 },
  { text: '其他', value: 7 }
]

// 其他案例-治疗方案
export const OTHER_TREATMENT_OPTIONS = [
  { text: '补牙', value: '' },
  { text: '拔牙', value: 0 },
  { text: '根管治疗', value: 1 },
  { text: '牙周治疗', value: 2 },
  { text: '冷光美白', value: 3 },
  { text: '牙齿贴面', value: 4 },
  { text: '洗牙', value: 5 },
];

// 材料字典
export const MATERIAL_LIST_OPTIONS = {
  1: MATERIAL_OPTIONS,
  2: GROW_MATERIAL_OPTIONS,
  3: OTHER_MATERIAL_OPTIONS
}

// 牙齿情况字典
export const TEETH_LIST_CONDITION = {
  1: TEETH_CONDITION,
  2: GROW_TEETH_CONDITION,
  3: OTHER_TEETH_CONDITION
}

// 治疗方案字典
export const TREATMENT_LIST_OPTIONS = {
  1: TREATMENT_OPTIONS,
  2: GROW_TREATMENT_OPTIONS,
  3: OTHER_TREATMENT_OPTIONS
}


// 查案例-治疗周期
export const CLUE_CYCLE_OPTIONS = [
  { text: '3个月以内', value: 1 },
  { text: '3-6个月', value: 2 },
  { text: '6-12个月', value: 3 },
  { text: '12-24个月', value: 4 },
  { text: '24-36个月', value: 5 },
  { text: '36个月以上', value: 6 },
]

// 平台运营-校验规则
export const PLATFORM_OPERATION_RULES = {
  onShelf: [
    { required: true, message: "请选择上架状态", trigger: "change" },
  ],
  orderTime: [
    { required: true, message: "请输入排序时间", trigger: "blur" },
  ],
  seoTitle: [
    { required: true, message: "请输入seo标题", trigger: "blur" },
  ],
  seoKeywords: [
    { required: true, message: "请输入seo关键词", trigger: "blur" },
  ],
  seoDescription: [
    { required: true, message: "请输入seo描述", trigger: "blur" },
  ],
}

// 新增医院参数
export const ADD_HOSPITAL_FIELD = ["activityPricingStrategy", "address", "attention", "businessLicense", "businessTime", "city", "cityName", "classId", "district", "districtName", "emergencyContact", "establishDate", "expertProject", "featuredLabelId", "featuredServicesId", "hasCertified", "homePageShow", "id", "initAppointmentCnt", "initScore", "introduce", "isOpened", "lat", "lng", "logo", "medicalInsurancePolicy", "name", "onShelf", "orderNum", "orderTime", "outpatientArea", "outpatientIntroduce", "outpatientPriceList", "outpatientRootCnt", "parkGuide", "practiceLicense", "principal", "province", "provinceName", "qualificationId", "receptionTel", "seoDescription", "seoKeywords", "seoTitle", "smsContentConfig", "surroundingsPic", "toothChairCnt", "trafficGuide", "onlineTime","businessDeveloper","statementDate","outpatientClass"]

// 新增医生参数
export const ADD_DOCTOR_FIELD = ["caseCnt", "city", "cityName", "expertProject", "gender", "hasCertified", "homePageShow", "honor", "hospitalId", "id", "initAppointmentCnt", "initScore", "introduce", "isOpened", "name", "onShelf", "orderTime", "personalTitle", "photo", "poster", "practiceLicense", "practiceLicenseNo", "qualificationId", "seoDescription", "seoKeywords", "seoTitle", "workYears", 'titleId']